#include <stdio.h>
#include <string.h>

void encryptString(char *s, int k, char *encrypted) {
    int len=strlen(s);
    for (int i=0;i<len;i++) {
        encrypted[i]=s[(i+k)%len];
    }
    encrypted[len]='\0';
}